#pragma once

#include <zookeeper/zookeeper.h>
#include <string>
#include <semaphore.h>

class ZkClient
{
public:
    ZkClient();
    ~ZkClient();
    void start();
    void create(const char *path, const char *data, int datalen, int state = 0);
    std::string getData(const char *path);
private:
    zhandle_t *m_zhandle;
};